﻿<%@ Page Language="C#" ValidateRequest="false" %>

<%@ Import Namespace="RssEasy.Core" %>
<%@ Import Namespace="LocalDAL" %>
<%@ Import Namespace="System.Text.RegularExpressions" %>
<% 
    ChineseWord entity = new ChineseWord();
    entity.request();

    string words = String.Join(",", entity["words"].ToCharArray()).Replace(",", "','");
    entity.select("jt,qppy").where("jt in('" + words + "')").query();

    DictionaryExtend dict = entity.toDict(0, 1);
    string letter = "";
    foreach (char c in entity["words"].ToCharArray())
    {
        letter += dict[c.ToString()];
    }
    Response.Write(letter);
%>